package com.choudou5.nlp.consts;

/**
 * @name 爬虫常量
 * @author choudou5
 * @date 2018-08-21
 */
public interface AnalysisConsts {

    String ENCODING_UTF8 = "utf-8";

    //----------------请求类型-------------------//
    String HTTP_GET = "GET";
    String HTTP_POST = "POST";
    String HTTP_PUT = "PUT";


    String TENCENT_API = "https://wenzhi.api.qcloud.com/v2/index.php";

    String BAIDU_ACCESS_TOKEN_API = "https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=%s&client_secret=%s";

    String BAIDU_API = "https://aip.baidubce.com/rpc/2.0/nlp/v1/lexer?charset=UTF-8&access_token=%s";

    String BOSON_API = "http://api.bosonnlp.com/tag/analysis?space_mode=0&oov_level=3&t2s=0&special_char_conv=0";

    String SOUGOU_API = "http://www.sogou.com/labs/webservice/sogou_word_seg.php";

}
